import java.util.Scanner;
public class test9 {
    public static void main(String[] args) {
        System.out.println("请输入一个小数");
        Scanner sc = new Scanner(System.in);
        int fist = sc.nextInt();
        System.out.println("请输入一个大数");
        int sec = sc.nextInt();
        int sum = 0;
        for (int i = fist; i <= sec; i++) {
            if (i % 3 == 0 && i % 5 == 0) {
                sum++;
            }
        }
        System.out.println("在"+fist+"和"+sec+"中，符合同为3和5的倍数的数字有："+sum+"个");

    }

}
